import json

data = [{"name": "张三"}, {"name": "李四"}]
data1 = str(data)
print(data1)

js_data = json.dumps(data, ensure_ascii=False)
print(f"{js_data},类型是:{type(js_data)}")


py_data = json.loads(js_data)
print(f"{py_data},类型是:{type(py_data)}")
